home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / DIKUMUD.ZIP / SCRIPT.DOC < prev    next >
Encoding:
Text File  |  1993-05-22  |  1.6 KB  |  76 lines

  1.  
  2.  
  3. Script Commands:
  4.  
  5.       noop [number]                                NO OPeration
  6.            Will do no operation for either one pulse if there is no argument,
  7.            or as many pulses as the argument is.
  8.  
  9.  
  10.       jsr  <label>                                 Jump to Sub-Routine
  11.            Jump to the sub-routine listed as the label (see labels) until
  12.            either end is reached, or an rts occurs (see rts).
  13.  
  14.  
  15.       jmp  <label>                                 JuMP
  16.            Jump to the sub-routine listed as the abel (see labels) until
  17.            end is reached (or another jump).
  18.  
  19.  
  20.       rts                                          Return To Subroutine
  21.            Returns to the last sub-routine jsr'd from.
  22.  
  23.  
  24.       end                                          END
  25.            Ends the program, MUST be the last statement.
  26.  
  27.  
  28.       goto <mob/room>                              GOTO
  29.            Makes the mobile try to go to either the room number or the
  30.            mobile name.  If it is in existance, it will try to walk to
  31.            it using a track routine.  If it can't get to it via track,
  32.            it will "go" to it.
  33.  
  34.       act <number>                                 ACT
  35.            Change the mobile's act numbers to those listed in the argument.
  36.  
  37.  
  38. Labels:
  39.  
  40.       Labels must be proceeded by a "_", ie _Label.
  41.  
  42.  
  43.  
  44. An Example of a script:
  45.  
  46. goto 3006
  47. yawn
  48. burp
  49. hiccup
  50. noop
  51. west
  52. east
  53. fart
  54. up
  55. say I'm not feeling so good...
  56. puke
  57. puke
  58. lick
  59. spit drunk
  60. down
  61. east
  62. buy bottle
  63. lick
  64. west
  65. up
  66. sit
  67. drink bottle
  68. hiccup
  69. drink bottle
  70. burp
  71. say Anyone seen my keys?
  72. shrug
  73. stand
  74. down
  75. end
  76.